const express = require('express');
const router = express.Router();
const {Hua} = require('../model/hua');
router.get('/list', async (req, res) => {
    const data = await Hua.find({}).sort({ hot: -1 }).limit(6);
    res.json(data);
})
router.get('/detail', async (req, res) => {
    const data = await Hua.find({})
    res.json(data);
})
module.exports = router;
